package com.irdstudio.efp.rule.service.facade;

import java.util.Map;

/**
 *
 * drools动态规则
 *
 * @author Cytus_
 * @since 2018年6月2日 下午4:44:46
 * @version 1.0
 *
 */
public interface DynamicExecuteDrools {

    boolean dynamicExecuteDrools(String ruleName, String droolsScript, Map<String, Object> params) throws Exception;
    /**
     * 编译动态规则
     * @param ruleName 规则名
     * @param droolsScript 规则
     */
    void compileDynamicRule(String ruleName, String droolsScript)  throws Exception;
}
